gtk-demo: Make editable cells demo more robust
authorMatthias Clasen <mclasen@redhat.com>
Mon, 19 Jan 2015 12:32:31 +0000 (07:32 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 19 Jan 2015 12:36:08 +0000 (07:36 -0500)
commit531fa7860135cd339475d5411dd8630313990e91
treec0533e2a9321c155e51b589709209bb20db68b39
parentdc952e3d949644b101ab819eca0502a3661e897e
gtk-demo: Make editable cells demo more robust

When removing all rows, trying to add rows would not work
and throw criticals. This is fallout from a recent change
to insert rows at the right position. Fix this by handling
the 'empty model' case separately.

https://bugzilla.gnome.org/show_bug.cgi?id=743157
demos/gtk-demo/editable_cells.c